package cn.kgc.takemanager01.service.impl;

import cn.kgc.takemanager01.mapper.ProductMapper;
import cn.kgc.takemanager01.pojo.Product;
import cn.kgc.takemanager01.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @create 郭祥伟
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    ProductMapper productMapper;
    @Override
    public List<Product> selectAll() {
        List<Product> productList= productMapper.selectByExample(null);
        return productList;
    }
}
